package com.t282.crm.repository;

import com.t282.crm.entity.Role;
import com.t282.crm.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface RoleRepository extends JpaRepository<Role,Long> {
    //根据角色名称进行模糊查询并分页
    public Page<Role> findROlesByRoleNameLike(String roleName, Pageable pageable);

    public Role findRoleByUsers(User users);
}
